package reflex;

/**
 * @author Yancy
 * @program springioctest
 * @create 2021-01-16
 */
public class Person {
  private String name;
  private int age;

  public int a;
  protected int b;
  private int c;
  int d;

  public void eat() {
    System.out.println("eat...");
  }

  public void eat(String a) {
    System.out.println("eat..."+a);
  }

  public Person() {}

  public Person(String name, int age, int a, int b, int c, int d) {
    this.name = name;
    this.age = age;
    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
  }

  public Person(String name, int age) {
    this.name = name;
    this.age = age;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public int getA() {
    return a;
  }

  public void setA(int a) {
    this.a = a;
  }

  public int getB() {
    return b;
  }

  public void setB(int b) {
    this.b = b;
  }

  public int getC() {
    return c;
  }

  public void setC(int c) {
    this.c = c;
  }

  public int getD() {
    return d;
  }

  public void setD(int d) {
    this.d = d;
  }

  @Override
  public String toString() {
    return "Person{" + "name='" + name + '\'' + ", age=" + age + ", a=" + a + ", b=" + b + ", c="
        + c + ", d=" + d + '}';
  }
}
